package cn.yuemouren.leetcode;

/**
 * @Author: Timi
 * @Description: 344. 反转字符串
 * @Date: 2020/7/27 11:03
 */
public class Test_344 {

    public void reverseString(char[] s) {
        int left = 0;
        int right = s.length - 1;
        while(left < right){
            char c = s[left];
            s[left] = s[right];
            s[right] = c;
            left++;
            right--;
        }
    }
}
